Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(#27): Add dbt unit test brac #28

Merged
merged 44 commits into from
Nov 1, 2023
Merged

Conversation

lorerod
Copy link
Contributor

@lorerod lorerod commented Sep 19, 2023

Add unit test to BRAC dbt models

closes #27

@lorerod lorerod changed the base branch from main to BRAC-models October 18, 2023 11:54
@lorerod lorerod marked this pull request as ready for review October 23, 2023 17:08
@lorerod
Copy link
Contributor Author

lorerod commented Oct 23, 2023

Hi reviewers! I implemented a pretty straightforward test on each of the BRAC models. If you have time, you can learn about dbt unit test here.
I also made a summary in this short video.
I hope to find a way to calculate test coverage. I will let you know if I do.
Also, a couple of important details about this PR. The changes on .sql files were made by @njuguna-n to fix models that were not compiling. The change is going to be merge to BRAC-models branch, not main branch.
Thanks!

Copy link
Member

@andrablaj andrablaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I managed to run the unit tests successfully. Nevertheless, I didn't check the test coverage resources you shared. I think this is already a good start for learning how to set up the unit tests for dbt.

Screenshot 2023-10-26 at 13 48 40

tests/run_dbt_tests.sh Outdated Show resolved Hide resolved
@lorerod
Copy link
Contributor Author

lorerod commented Nov 1, 2023

@andrablaj I will configure the project to check for test coverage on this issue.

@lorerod lorerod merged commit 194b3d5 into BRAC-models Nov 1, 2023
2 checks passed
@lorerod lorerod deleted the 27-add-dbt-unit-test-brac branch November 1, 2023 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add dbt unit test for BRAC models
3 participants